<template>
  <el-row align="middle" type="flex" justify="center" class="login">
    <el-col :span="8">
      <el-card header="后台数据管理登录">
        <el-form :model="form" label-width="60px" style="width: 80%;">
          <el-form-item label="用户名" prop="username">
            <el-input v-model="form.username"></el-input>
          </el-form-item>
          <el-form-item label="密码" prop="password">
            <el-input v-model="form.password"></el-input>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" @click="handleClickLogin">登 录</el-button>
          </el-form-item>
        </el-form>
      </el-card>
    </el-col>
  </el-row>
</template>

<script>
export default {
  data() {
    return {
      form: {
        username: '',
        password: ''
      }
    };
  },
  methods: {
    handleClickLogin() {
      this.$router.push('/');
    }
  }
};
</script>

<style>

</style>
